package XiaWu;

public class MyRunnable implements Runnable{

    @Override
    public void run() {
        System.out.println("线程开始运行");
        for (int i=50;i>=1;i--) {
            System.out.println(i);

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            System.out.println("代码有误");
            }
        }
    }

